package com.gamejelly.broker.server;

import com.gamejelly.broker.message.RegisterMsg;
import com.gamejelly.broker.message.RpcMessage;

public interface BrokerServer {
    static BrokerServerImpl.ServerBuilder builder() {
        return new BrokerServerImpl.ServerBuilder();
    }

    String register(String remoteAddress, RegisterMsg registerMsg);

    void send(RpcMessage rpcMessage) throws Exception;

    void unRegister(String rpcId);
}
